CXX = g++
CXXFLAGS = -std=c++11
SRCS = commonConnectionPool.cpp connection.cpp pch.cpp main.cpp
OBJS = $(patsubst %.cpp, %.o, $(SRCS))
TARGET = conpool

$(TARGET): $(OBJS)
	$(CXX) $(CXXFLAGS) $^ -o $@ -lpthread -lmysqlclient

%.o: %.cpp
	$(CXX) $(CXXFLAGS) -c $< -o $@

clean:
	rm -f $(OBJS) $(TARGET)